package com.weightx.weight.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserExcel extends user {
    private Long addNum30;
    private Long addNumAll;

    public UserExcel(user user) {
        this.setUserid(user.getUserid());
        this.setOpenid(user.getOpenid());
        this.setRegisterTime(user.getRegisterTime());
        this.setLoginTime(user.getLoginTime());
        this.setSex(user.getSex());
        this.setUnit(user.getUnit());
        this.setBirth(user.getBirth());
        this.setTargetWeight(user.getTargetWeight());
        this.setBodyHeight(user.getBodyHeight());
    }
}
